package com.fauks.study.msdata.config;

import org.mybatis.spring.boot.autoconfigure.ConfigurationCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MybatisConfig {

    //自定义Mybatis配置
    @Bean
    public ConfigurationCustomizer configurationCustomizer() {
        //忽略大小写与下划线
        return configuration -> configuration.setMapUnderscoreToCamelCase(false);
    }
}
